<?php

// 1. 如何知道要删除哪一篇文章？

// 2. 如何删除

$id = $_GET['id'];

include("../pdo.php");


$sql = "delete from articles where id=:id";

$stmt = $pdo->prepare($sql);
$stmt->bindParam(":id", $id);

$stmt->execute();


header("location: list.php");

